FROM dev.k2data.com.cn:5001/isuper/java-oracle:jdk_7

ADD docker/entrypoint.sh /opt/k2data/entrypoint.sh

ADD target/k2de-backup.jar /opt/k2data/

WORKDIR /opt/k2data
ENTRYPOINT ["./entrypoint.sh"]
CMD []

ARG branch
ARG commit
ARG buildtime
ARG owner
LABEL branch=$branch \
        commit=$commit \
        buildtime=$buildtime \
        owner=$owner
